package com.peng.community.service;

import com.peng.community.entity.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentService {

    List<Comment> findCommentsByEntity( int entityType, int entityId, int offset,int limit);

    int findCountCommentsByEntity(int entityType, int entityId);

    int addComment(Comment comment);

    Comment findCommentById(int id);
}
